<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function getCaozuo() {
            let sum = 0
            console.log(arguments);
            const max = Math.max(...arguments)
            const min = Math.min(...arguments)
            for (let i = 0; i < arguments.length; i++) {
                console.log(arguments[i]);
                sum += arguments[i]
            }
            const pun = sum / arguments.length
            return [max, min, pun]
        }
        let [a, b, c] = getCaozuo(1, 23, 4, 56, 77, 6, 65)
        document.write(`最大值：${a}<br>`)
        document.write(`最小值：${b}<br>`)
        document.write(`平均值：${c}<br>`)
    </script>
</body>

</html>